<?php $__env->startSection('title',"回复"); ?>
<?php $__env->startSection('body'); ?>
    <meta name="huifu" content="<?php echo e($urls['url']); ?>">
    <script src="/js/app/post.js"></script>
    <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">
    <nav class="navbar navbar-default " role="navigation">
        <ul class="nav navbar-nav nav-justified ">
            <?php if($status): ?>
            <li><a href="?user=1"  class="btn-info">用户消息</a></li>
            <li><a href="?system=1" >系统消息</a></li>
            <?php else: ?>
                <li><a href="?user=1"  >用户消息</a></li>
                <li><a href="?system=1" class="btn-info" >系统消息</a></li>
            <?php endif; ?>
        </ul>
    </nav>
    <div class="container" >

        <?php if($status): ?>
            <?php $__currentLoopData = $data['datas']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                <div class="alert alert-success with-icon">
                    <div class="comment">
                        <a href="###" class="avatar">
                            <img src="<?php echo e($item['content']['user']['avatar']); ?>" class="img-circle" width="100%" height="100%">
                        </a>
                        <div class="content">
                            <div class="pull-right text-muted"><?php echo e(date("y-m-d h:i:s",substr($item['createTime'],0,-3))); ?></div>
                            <div><a href="###"><strong><?php echo e($item['content']['user']['nick']); ?></strong></a> <span class="text-muted">帖子</span> <a href="/admin/post_new?id=<?php echo e($item['content']['post']['postID']); ?>"><?php echo e($item['content']['post']['title']); ?></a></div>
                            <div class="text"><?php echo e($item['content']['text']); ?></div>
                            <div class="actions">
                                <?php
                                    //dump($item);
                                ?>
                                <button type="button" data-custom="<input id='text' type='text' name='text' class='form-control'> <center><button class='btn btn-info' onclick='huifu(<?php echo e($item['content']['commentID']); ?>,<?php echo e($item['content']['post']['postID']); ?>)'>回复</button></center>" data-toggle="modal" class="btn btn-danger" >回复</button>
                                </div>
                        </div>
                    </div>
                </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        <?php else: ?>
            <?php $__currentLoopData = $data['datas']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <div class="alert alert-success with-icon">
                    <i class="icon-ok-sign"></i>
                    <div class="content">
                        <h3><?php echo e($item['content']['text']); ?></h3>
                        <hr>
                        <h3>审核人: <a href="/admin/user_info?id=<?php echo e($item['content']['user']['userID']); ?>" class="card-link"><?php echo e($item['content']['user']['nick']); ?></a></h3>
                        <h3>时间:<?php echo e(date('y-m-d H:i:s',substr($item['createTime'],0,-3))); ?></h3>
                    </div>
                </div>

            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        <?php endif; ?>
    </div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('public.pub', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>